package com.hightrast.service;


import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@MapperScan("com.hightrast.service.mapper")
@EnableAutoConfiguration(exclude = {HibernateJpaAutoConfiguration.class})
@EnableAsync
@ComponentScan(basePackages = {"com.hightrast.service","com.hightrast.service.api"})
@EnableScheduling
@EnableTransactionManagement
public class HigtrasApplication {
    public static void main(String[] args)
    {
        //设置系统代理
        //System.setProperty("socksProxyHost","127.0.0.1");
        //System.setProperty("socksProxyPort","7890");
        SpringApplication.run( HigtrasApplication.class, args);
    }
}
